        $(function() {

            $("#jsGrid").jsGrid({
                height: "100%" ,
                width: "100%" , 
                filtering: false,
                editing: false,
                inserting: false,
                sorting: true,
                paging: true,
                autoload: true,
                pageSize: 15,
                pageButtonCount: 4,
                deleteConfirm: "Do you really want to delete the client?",
                controller: db,
                noDataContent: "目前是空的......",
                fields: [
                    { name: "barCode", title: "商品条码", type: "text", width: 110},
                    { name: "productName",title: "商品名称", type: "text", width: 130},
                    { name: "timeRemain",title: "保质期剩余", type: "text", width: 50},
                    { name: "stockAmount",title: "数量", type: "text", width: 25},
                    { name: "stockPrice",title: "单价", type: "text", align: "right", width: 25},
                    { type: "control"}
                ]
                // fields: [
                //     { name: "barCode",  type: "text"},
                //     { name: "productName", type: "text"},
                //     { name: "timeRemain", type: "text"},
                //     { name: "stockAmount", type: "text"},
                //     { name: "stockPrice", type: "text"},
                //     { type: "control" }
                //]
            });

        });